package org.lionsoul.websnail.downloader;

import org.lionsoul.websnail.Spider;

/**
 * page downloader interface
 *
 * @author yangjian
 **/
public interface Downloader {

	String HTTP_CLIENT = "HttpClient";
	String WEB_DRIVER = "WebDriver";

	// 请求页面，下载 HTML 返回
	String process(Spider spider, String url);

	// 关闭下载器，回收资源
	void shutdown();
}
